怎样让文本区域占满一格<tr><td><textarea ></textarea></td></td></tr>?

来源:百度知道 编辑:UC知道 时间:2024/06/16 15:10:55
<tr><td ><textarea name="liuyan" cols="100" rows="5" style="width:100%;" ></textarea></td></tr>这样只解决了满宽,但是怎么让高也占满呢?CSS吗?怎么用?

<tr><td ><textarea name="liuyan" cols="100" rows="5" style="width:100%;height:100%;" ></textarea></td></tr>

style="width:100%;" 你这里已经用到样式了,这是设置的宽100%,再加个height就表示高也100%了。

style="width:100%;height:100%;"